<%@ page language="java" pageEncoding="UTF-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html:html lang="true">
<head>
	<html:base />

	<title>test.jsp</title>

	<meta http-equiv="pragma" content="no-cache" />
	<meta http-equiv="cache-control" content="no-cache" />
	<meta http-equiv="expires" content="0" />
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
	<meta http-equiv="description" content="This is my page" />
	<script type="text/javascript"
		src="<%=request.getContextPath()%>/dwr/interface/fileUploader.js"></script>
	<script type="text/javascript"
		src="<%=request.getContextPath()%>/dwr/engine.js"></script>
	<script type="text/javascript"
		src="<%=request.getContextPath()%>/dwr/util.js"></script>
	<script type="text/javascript">
		function upload(){
			alert(dwr.util.getValue("uploadImage"));
			//fileBo.uploadImage(dwr.util.getValue("uploadImage"), function(data) {
			//	alert(data);
			//});
		}
	</script>
</head>

<body>
	<input type="file" name="uploadImage" />
	<input type="button" value="upload" onclick="upload();" />
	<%
		//Cookie c = new Cookie("test", "hello");
		//response.addCookie(c);
		Cookie[] cc = request.getCookies();
		if(cc!=null){
			for(Cookie c:cc){
				out.println(c.getName()+":"+c.getValue()+".");
			}
		}
	%>
</body>
</html:html>
